/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.mallsite.modules.shop.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 供应商Entity
 * @author ruyang
 * @version 2020-12-08
 */
@Table(name="ms_supplier", alias="a", columns={
		@Column(name="sup_id", attrName="supId", label="编号", isPK=true),
		@Column(name="sup_name", attrName="supName", label="供应商", queryType=QueryType.LIKE),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class Supplier extends DataEntity<Supplier> {
	
	private static final long serialVersionUID = 1L;
	private String supId;		// 编号
	private String supName;		// 供应商
	
	public Supplier() {
		this(null);
	}

	public Supplier(String id){
		super(id);
	}
	
	public String getSupId() {
		return supId;
	}

	public void setSupId(String supId) {
		this.supId = supId;
	}

	@Length(min=0, max=50, message="供应商长度不能超过 50 个字符")
	public String getSupName() {
		return supName;
	}

	public void setSupName(String supName) {
		this.supName = supName;
	}
	
}